' Stephen Toub


Imports Microsoft.VisualBasic
Imports System
Imports System.IO

Namespace C4F.DevKit.PreviewHandler.PreviewHandlerFramework
    Public MustInherit Class StreamBasedPreviewHandlerControl
        Inherits PreviewHandlerControl
        Public NotOverridable Overrides Sub Load(ByVal file As FileInfo)
            Using fs As FileStream = New FileStream(file.FullName, FileMode.Open, FileAccess.Read, FileShare.Delete Or FileShare.ReadWrite)
                Load(fs)
            End Using
        End Sub
    End Class
End Namespace
